package com.hfzy.ihk.facade.userCenter.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hfzy.ihk.facade.userCenter.entity.Priv;
import com.hfzy.ihk.facade.userCenter.entity.Resource;
import com.hfzy.ihk.facade.userCenter.entity.Role;
import com.hfzy.ihk.facade.userCenter.entity.UserHasPriv;
import lombok.Data;

import java.util.List;

@Data
public class UserVo {
    private Integer id;

    private String name;

    private String username;

    /**
     * 是否超级用户
     */
    private boolean supper;

    /**
     * 上级ID，简单实现上下级关系
     */
    private Integer managerId;

    private String remark;

    @TableField(exist = false)
    private List<Role> roles;
    @TableField(exist = false)
    private List<Priv> privs;

}
